import request from "../request";

export async function getIdleSpace(params) {
  return request({
    url: "/api/app/get-idle-spaces",
    method: "post",
    data: params,
  });
}

export async function getPresents(params) {
  return request({
    url: "/api/app/get-present-spaces",
    method: "post",
    data: params,
  });
}

export async function getPresentInfoByParkspaceCode(params) {
  return request({
    url: "/api/app/get-present-info",
    method: "get",
    params: params,
  });
}

export async function getFee(params) {
  return request({
    url: "/api/app/get-fee",
    method: "post",
    data: params,
  });
}

export async function inSettle(params) {
  return request({
    url: "/api/app/settle-in",
    method: "post",
    data: params,
  });
}
export async function outSettle(params) {
  return request({
    url: "/api/app/settle-out",
    method: "post",
    data: params,
  });
}

export async function GetPosConfig(params) {
  return request({
    url: "/api/app/get-pos-config",
    method: "get",
    params: params,
  });
}

export async function appfile(params) {
  return request({
    url: "/api/app/file",
    method: "post",
    data: params,
  });
}
